import * as types from '../types';
import { ILoginState } from '../interfaces';
import { NIGHTSTAR_LOGIN_INITALSET } from '../types';

export interface IInitalLogin {
    type: typeof types.NIGHTSTAR_LOGIN_INITALSET;
    state: ILoginState;
}

// 改变用户信息的方法
export const changeUserInfo = (state: ILoginState): IInitalLogin => {
    return {
        type: NIGHTSTAR_LOGIN_INITALSET,
        state,
    };
};

export type ILoginActionType = IInitalLogin;
